package com.meilai.project.dto.workflow;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * @author 张驰
 * @date 2020/5/27
 */

@Data
@ApiModel(value= "工作流_节点")
public class WorkFlowNode implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "uuid")
    private String id;
    @ApiModelProperty(value = "显示名称")
    private String name;
    @ApiModelProperty(value = "start 开始节点；check 审批节点；end 结束节点")
    private String type;
    @ApiModelProperty(value = "left距离")
    private String left;
    @ApiModelProperty(value = "top距离")
    private String top;
    @ApiModelProperty(value = "图标")
    private String ico;
    @ApiModelProperty(value = "1 会签；2 或签；3 自由编辑")
    private Integer nodeType=1;
    @ApiModelProperty(value = "开关")
    private Integer nodeSwitch=0;
    @ApiModelProperty(value = "提交人设置开关  1 开启；0 关闭")
    private Integer nodeSwitchSubmit=1;
    @ApiModelProperty(value = "可选")
    private Integer nodeCanChooseSwitch=0;
    @ApiModelProperty(value = "可选待选人ids")
    private List<String> nodeCanChooseValue=new ArrayList<>();
    @ApiModelProperty(value = "提交人设置待选人ids")
    private List<String> nodeCanChooseValueSubmit=new ArrayList<>();
    @ApiModelProperty(value = "可加传阅人")
    private Integer nodeCanAddReadersSwitch=0;
    @ApiModelProperty(value = "前置传阅人ids")
    private List<String> nodePrevReadersValue=new ArrayList<>();
    @ApiModelProperty(value = "后置传阅人ids")
    private List<String> nodeAfterReadersValue=new ArrayList<>();
    @ApiModelProperty(value = "配置项")
    private List<WorkFlowPropertyData> data=null;

    @ApiModelProperty(value = "当前check_index，表示取check_ids第几个元素")
    private Long cur_check_index=0L;
    @ApiModelProperty(value = "check_ids")
    private List<List<WorkFlowUserCheck>> check_ids=new ArrayList<>();

    @ApiModelProperty(value = "审批意见")
    private String options;

    @ApiModelProperty(value = "手写签名")
    private String signUrl;
}
